package com.clr.springboot.service;

import com.clr.springboot.entity.User;


import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

public interface UserService {
    User selectByid(Integer id);
    int addUser(User user);
    int updateUser(User user);
    int deleteUserById(Integer id);
    List<User> selectallUsers(User user);
    User login(String name,String password);
    List<User> getUserList();
    User FindByid(Integer id);

    int delUser(Integer id);


    PageInfo<User> findByCondition(String name, Integer age,Integer pageNum, Integer pageSize);



    User FindByUsername(String username);

    void batchDelete(List<Integer> ids);
}
